import MyPlugin from './myPlugin'
module.exports ={
    // ....
    module:{
        rules:[
           {
                test:'/\.js$/',
                use:[
                    'replace-loader'
                ]
           }
        ]
    },
    plugins:[
        // ...,
        new MyPlugin({params:'xxx'})
    ]
}